package com.i.piccommon.constant;

import lombok.Getter;

/**
 * @author lewis
 * @type enum
 * @description
 * @since 2024/10/23
 */
@Getter
public enum Status {
    OK(-1,"成功"),
    FAIL(-2,"失败"),
    UNAUTHORIZED(-3,"未认证"),
    NOT_FOUND(-4,"接口不存在"),
    INTERNAL_SERVER_ERROR(-5,"服务器内部错误"),
    TOKEN_AUTH_FAILED(-6,"token错误"),
    MAIL_SEND_FAILED(-7,"邮件发送失败");
    private final Integer code;
    private final String message;

    Status(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
